#
# A makefile that creates the programs cortest, evaldet, and findpars.
# It was tested on Silicon Graphics' IRIX. Perhaps, there should not
# be problems on other platforms.
#

# COMPOPTS = -mtune=athlon-xp -O2 -funroll-loops
# COMPOPTS = -O3 -msse -msse2 -mmmx -m3dnow

COMPILER =  cc
COMPOPTS = -O0 -g3 
MATHLIB  = -lm

default all: cortest evaldet findpars

cordet.o: cordet.c cordet.h
	$(COMPILER) cordet.c $(COMPOPTS) -c

utils.o:  utils.c utils.h
	$(COMPILER) utils.c $(COMPOPTS) -c

cortest:  cortest.c cordet.o utils.o
	$(COMPILER) cortest.c cordet.o utils.o $(COMPOPTS) $(MATHLIB) -o cortest

evaldet:  evaldet.c utils.o
	$(COMPILER) evaldet.c utils.o $(COMPOPTS) $(MATHLIB) -o evaldet

findpars: findpars.c cordet.o utils.o
	$(COMPILER) findpars.c cordet.o utils.o $(COMPOPTS) $(MATHLIB) -o findpars
   
clean:
	rm -rf *.o cortest evaldet findpars

